package com.twu.soloproject;

/**
 * Created with IntelliJ IDEA.
 * User: thoughtworker
 * Date: 10/10/13
 * Time: 1:34 PM
 * To change this template use File | Settings | File Templates.
 */
public class Player {
    private String name;
    private Team team;
    private Integer number;
    private Integer age;

    public Player(String name, Team team, Integer number, Integer age) {
        this.name = name;
        this.team = team;
        this.number = number;
        this.age = age;
    }

    public String displayInfo() {

        return "Name: " + name + ", Team: " + team.getTeamName() + ", Number: " + number.toString() +
                ", Age: " + age.toString();
    }

    public String getName() {
        return name;

    }

    public Team getTeam() {
        return team;
    }

    public Integer getAge() {
        return age;
    }
}
